<!-- File: /app/View/Posts/view.ctp -->
<?php
if ($this->Session->read('user.is_admin')) {
    echo $this->Html->link(
        'Modifier',
        array(
            'controller' => 'AdminPages',
            'action' => 'edit',
            $page['Page']['id']
        )
    );
}
?>

<?php
    echo $this->element('widgets', array(
        'block' => $blocks
    ));
?>